#include "OADataCebter.h"
#include <iostream>
#include <string>

using namespace std;

OAUser::OAUser() {
  _username = "";
  _password = "";
}

OAUser::OAUser(string username, string password, string department) {
  _username = username;
  _password = password;
  _department = department;
}

OAUser OAUser::ERROR_USER = OAUser();

string OAUser::username() { return _username; }

string OAUser::department() { return _department; }

bool OAUser::reserveMeetingRoom(int mid ) {
  return OADataCebter::getInstance().reserveMeetingRoom(mid, _username);
}

bool OAUser::cancelReserveMeetingRoom(int mid ) {
  return OADataCebter::getInstance().cancelReserveMeetingRoom(mid, _username);
}

void OAUser::printMeetingRoomByUser( ) {
  OADataCebter::getInstance().printMeetingRoomByUser(_username);
}